﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace HRP.Private
{
    public partial class MenuPrivado : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            var root = SiteMap.RootNode;
            List<SiteMapNode> siteMapList = root.ChildNodes.Cast<SiteMapNode>().ToList();
            Menu.DataSource = siteMapList;
            Menu.DataBind();
        }
    }
}